package com.ldk.framework.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ldk.base.framework.dao.IBaseDAO;
import com.ldk.base.framework.service.impl.BaseService;
import com.ldk.framework.service.IRegionService;
import com.ldk.framework.dao.IRegionDAO;
import com.ldk.framework.entity.Region;

/**
* RegionService接口实现类
* @author xiangwl
*/
@Service
public class RegionService extends BaseService<Region> implements IRegionService {

	@Autowired
	private IRegionDAO regionDAO;

	@Override
	protected IBaseDAO<Region> getBaseDao() {
     	return this.regionDAO;
	}

	@Override
	public List<Region> getChildRegionList(String dbKey, int parentId) {
		
		return this.regionDAO.getChildRegionList(dbKey, parentId);
	}
}
